package com.example.smartf.model.mysql;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

/*
    设备信息类---------mysql
    设备ID（设备MAC）
    起始日期
    阈值最大值，最小值
 */
@Entity
@Table(name = "deviceinfo")
public class Deviceinfo {
    @Id
    @Column(name = "deviceid")
    private String  deviceid;

    @Column(name = "kind")
    private String kind;

    @Column(name = "startday")
    private String startday;

    @Column(name = "devicename")
    private String devicename;

    @Column(name = "remarks")
    private String remarks;

    @Column(name = "co2downlimit")
    private Double co2min;

    @Column(name = "co2uplimit")
    private Double co2max;

    @Column(name = "ecdownlimit")
    private Double ecmin;

    @Column(name = "ecuplimit")
    private Double ecmax;

    @Column(name = "lightdownlimit")
    private Double lightmin;

    @Column(name = "lightuplimit")
    private Double lightmax;

    @Column(name = "phdownlimit")
    private Double phmin;

    @Column(name = "phuplimit")
    private Double phmax;

    @Column(name = "rhdownlimit")
    private Double rhmin;

    @Column(name = "rhuplimit")
    private Double rhmax;

    @Column(name = "tempdownlimit")
    private Double tempmin;

    @Column(name = "tempuplimit")
    private Double tempmax;

    public Deviceinfo() {
    }

    public Deviceinfo(String deviceid){
        this.deviceid = deviceid;
    }

    public Deviceinfo(String deviceid,String startday){
        this.deviceid = deviceid;
        this.startday = startday;
    }

    public String getKind() {
        return kind;
    }

    public void setKind(String kind) {
        this.kind = kind;
    }

    public Double getRhmin() {
        return rhmin;
    }

    public void setRhmin(Double rhmin) {
        this.rhmin = rhmin;
    }

    public Double getRhmax() {
        return rhmax;
    }

    public void setRhmax(Double rhmax) {
        this.rhmax = rhmax;
    }

    public Double getTempmin() {
        return tempmin;
    }

    public void setTempmin(Double tempmin) {
        this.tempmin = tempmin;
    }

    public Double getTempmax() {
        return tempmax;
    }

    public void setTempmax(Double tempmax) {
        this.tempmax = tempmax;
    }

    public Double getPhmin() {
        return phmin;
    }

    public void setPhmin(Double phmin) {
        this.phmin = phmin;
    }

    public Double getPhmax() {
        return phmax;
    }

    public void setPhmax(Double phmax) {
        this.phmax = phmax;
    }

    public Double getEcmin() {
        return ecmin;
    }

    public void setEcmin(Double ecmin) {
        this.ecmin = ecmin;
    }

    public Double getEcmax() {
        return ecmax;
    }

    public Double getLightmin() {
        return lightmin;
    }

    public void setLightmin(Double lightmin) {
        this.lightmin = lightmin;
    }

    public Double getLightmax() {
        return lightmax;
    }

    public void setLightmax(Double lightmax) {
        this.lightmax = lightmax;
    }

    public void setEcmax(Double ecmax) {
        this.ecmax = ecmax;
    }

    public Double getCo2min() {
        return co2min;
    }

    public void setCo2min(Double co2min) {
        this.co2min = co2min;
    }

    public Double getCo2max() {
        return co2max;
    }

    public void setCo2max(Double co2max) {
        this.co2max = co2max;
    }



    public String getRemarks() {
        return remarks;
    }

    public void setRemarks(String remark) {
        this.remarks = remark;
    }


    public String getDeviceid() {
        return deviceid;
    }

    public void setDeviceid(String deviceid) {
        this.deviceid = deviceid;
    }

    public String getStartday() {
        return startday;
    }

    public void setStartday(String startday) {
        this.startday = startday;
    }

    public String getDevicename() {
        return devicename;
    }

    public void setDevicename(String devicename) {
        this.devicename = devicename;
    }

}
